/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designpatternspart2.decoratorPattern;

/**
 *
 * @author Dwayne
 */
public class WingDecorator extends AnimalDecorator {

    public WingDecorator(Animal animal) {
        super(animal);
    }

    
    @Override
    public String describe() {
       animal.describe();
       System.out.println("I have wings");
       return fly();
    }
    
    public String fly(){
        System.out.println("I can fly");
        return "I can fly";
    }
}
